From 90b32fb4b243bf67b1008d6ec729b66ee2bdc080 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Mon, 24 Mar 2014 09:09:42 +0100 Subject: [PATCH] * tramp.texi (Frequently Asked Questions): Add fish shell settings. --- doc/misc/ChangeLog | 4 ++++ doc/misc/tramp.texi | 21 +++++++++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 4bbc94d6062..e886b92d5d1 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog @@ -1,3 +1,7 @@ +2014-03-24 Michael Albinus + + * tramp.texi (Frequently Asked Questions): Add fish shell settings. + 2014-03-21 Glenn Morris * ede.texi (ede-linux): diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 6dd5d2a88d8..c0a6156a4cf 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi @@ -3053,15 +3053,28 @@ setting the cursor at the top of the buffer, and applying the expression If it fails, or the cursor is not moved at the end of the buffer, your prompt is not recognized correctly. -A special problem is the zsh, which uses left-hand side and right-hand -side prompts in parallel. Therefore, it is necessary to disable the -zsh line editor on the remote host. You shall add to @file{~/.zshrc} -the following command: +A special problem is the zsh shell, which uses left-hand side and +right-hand side prompts in parallel. Therefore, it is necessary to +disable the zsh line editor on the remote host. You shall add to +@file{~/.zshrc} the following command: @example [ $TERM = "dumb" ] && unsetopt zle && PS1='$ ' @end example +Similar fancy prompt settings are known from the fish shell. Here you +must add in @file{~/.config/fish/config.fish}: + +@example +function fish_prompt + if test $TERM = "dumb" + echo "\$ " + else + @dots{} + end +end +@end example + Furthermore it has been reported, that @value{tramp} (like sshfs, incidentally) doesn't work with WinSSHD due to strange prompt settings. -- 2.30.2